package com.mavenq.fly.utils.excelv4.example;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 测试用户实体类
 */
public class User {
    private Long id;
    private String name;
    private Integer age;
    private String email;
    private BigDecimal salary;
    private Date createTime;
    private Boolean status;
    private String department;
    
    // 构造方法
    public User() {}
    
    public User(Long id, String name, Integer age, String email, 
                BigDecimal salary, Date createTime, Boolean status, String department) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.email = email;
        this.salary = salary;
        this.createTime = createTime;
        this.status = status;
        this.department = department;
    }
    
    // Getter和Setter
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public Integer getAge() { return age; }
    public void setAge(Integer age) { this.age = age; }
    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }
    public BigDecimal getSalary() { return salary; }
    public void setSalary(BigDecimal salary) { this.salary = salary; }
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    public Boolean getStatus() { return status; }
    public void setStatus(Boolean status) { this.status = status; }
    public String getDepartment() { return department; }
    public void setDepartment(String department) { this.department = department; }
    
    @Override
    public String toString() {
        return String.format(
            "User{id=%d, name='%s', age=%d, email='%s', salary=%s, department='%s'}",
            id, name, age, email, salary, department
        );
    }
}
